<template>
  <div>
    <elm-page-tb>
      <template #top>
        <el-input placeholder="请查询输入内容" size="mini" prefix-icon='el-icon-search' style="width:250px;" v-model="postData.name" clearable></el-input>
        <right>
          <el-button-group>
            <el-button icon="el-icon-search" size="mini" @click="tablebinding()">查询</el-button>
            <elm-open-button url="lead_edit" title="新增"  width="900" height="90%">新增</elm-open-button>
          </el-button-group>
        </right>
      </template>
      <elm-table url="/business/my/business/GetLeadByUser" :post-data="postData">
        <el-table-column prop="sys_code_key" label="线索号" align="center" width="150"></el-table-column>
        <el-table-column prop="kh_name_mc" label="客户名称" align="left" header-align="center"></el-table-column>
        <el-table-column prop="lxr_xm" label="联系人" align="center"  width="80"></el-table-column>
        <el-table-column prop="lxr_zw" label="联系人职务" align="center" ></el-table-column>
        <el-table-column prop="lxr_dh" label="联系人电话" align="center" ></el-table-column>
        <el-table-column prop="zt" label="状态" align="center"  width="100"></el-table-column>
        <el-table-column prop="dj" label="优先级" align="center"  width="120"></el-table-column>
        <el-table-column prop="ly" label="线索来源" align="left" header-align="center"></el-table-column>
        <el-table-column prop="fzxs_mc" label="跟进人" align="center" width="80"></el-table-column>
        <el-table-column prop="xqms" label="需求描述" align="left" header-align="center"></el-table-column>
        <el-table-column fixed="right" label="操作" width="120px" align="center">
          <template v-slot="scope">
            <elm-open-button url="lead_edit" title="编辑"   width="900" height="90%" :data="{ model: scope.row }" type="text">编辑</elm-open-button>
            <elm-delete-button  type="text" size="mini" url="/business/my/business/DeleteLead" :data="{ id: scope.row.id }">删除</elm-delete-button>
          </template>
        </el-table-column>
      </elm-table>
    </elm-page-tb>
  </div>

</template>

<script>
export default {
  extends: elmVueBase,
  data() {
    return {
      postData: { name: null}
    }
  },
  created() {
  },
  methods: {
  }
}
</script>
